package yns.springboot.guide.demo.configure;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

//直接读取配置文件内容,默认的application.properties
@Component
public class Configure {

	@Value("${test}")
	private String test;
	
	@Value("${test.name}")
	private String testName;

	public String getTest() {
		return test;
	}

	public void setTest(String test) {
		this.test = test;
	}

	public String getTestName() {
		return testName;
	}

	public void setTestName(String testName) {
		this.testName = testName;
	}

}
